<template>
  <div class="home-page">
    <div class="page-header">
      <div class="notice">
        <span class="content"> {{ title }} 已为您护航 </span>
        <span class="day">{{ day }}</span>
        <span class="content">天</span>
      </div>
    </div>
  </div>
</template>

<script>
import { mapState } from 'vuex'
import { getRunningDays } from '@/utils/util/constant'
export default {
  computed: {
    ...mapState({
      title: (state) => state.settings.title
    }),
    day() {
      return getRunningDays()
    }
  }
}
</script>

<style lang="scss" scoped>
.home-page {
  background: #f3f4f7;
  height: 100%;
  overflow: auto;
  .page-header {
    height: 70px;
    color: #3366ff;
    font-size: 28px;
    line-height: 36px;
    font-family: 'YouSheBiaoTiHei';
    background: url('~@/assets/images/banner-left.png') left 40px bottom/84px
        43px no-repeat,
      url('~@/assets/images/banner-right.png') right 49px top/286px 70px
        no-repeat,
      linear-gradient(-90deg, #daefff 0%, #f3faff 50%, #e6ecff 100%);

    .notice {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 100%;
      height: 100%;

      .day {
        display: inline-block;
        margin: 0 4px;
        color: #ff9305;
      }
    }
  }
}
</style>
